package com.baizhi.action;



import java.io.IOException;


public class SynchronousCheckUsernameAction {
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String execute() throws IOException, InterruptedException {
        Thread.sleep(5000);
        if("xushy".equals(username)){
            return "failed";
        }

        return "success";
    }
}
